package com.banyuan.HomeWork.interfacedemo;

public abstract class Shape {
    private double area;
    private double per;
    private String color;

    public Shape() {
    }

    public Shape(String color) {
        this.color = color;
    }

    public abstract double getArea();

    public abstract double getPer();

    public abstract void show();

    public String getColor() {
        return this.color;
    }

    //给父类中的area赋值
    public void setArea(double area) {
        this.area = area;
    }

    //显示父类中的area属性
    public double showArea(double area) {
        return this.area;
    }

    //给父类中的Per赋值
    public void setPer(double per) {
        this.per = per;
    }

    //显示父类中per属性
    public double showPer(double per) {
        return this.per;
    }

}
